<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>新窗口居中显示</title>
</head>

<body>
    <script>
        // customWidth = 800;
        // customHeight = 800;
        // var iTop = (window.screen.height - 30 - customHeight) / 2; //获得窗口的垂直位置;
        // var iLeft = (window.screen.width - 10 - customWidth) / 2; //获得窗口的水平位置;
        // window.open('工位.html', name, 'height=' + customHeight + ',innerHeight=' + customHeight + ',width=' + customWidth + ',innerWidth=' +
        // customWidth + ',top=' + iTop + ',left=' + iLeft +
        // ',toolbar=no,menubar=no,scrollbars=auto,resizeable=no,location=no,status=no')
    </script>
</body>

</html>